using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using TMS.Domain.Entity;

namespace TMS.Infrastructrue.Persistence.Configuration
{
    public class DormitoryConfiguration : Base.BaseEntityConfiguration<Dormitory>
    {

        public override void Configure(EntityTypeBuilder<Dormitory> builder)
        {
            base.Configure(builder);

            builder.ToTable("dormitory");

            builder.Property(x=>x.DormName).HasColumnName("dorm_name").HasMaxLength(2000000).HasColumnOrder(1);
            builder.Property(x=>x.DormCount).HasColumnName("dorm_count").HasMaxLength(2000000).HasColumnOrder(2);
        }

    }
}